<?php

namespace app\index\validate;

use think\Validate;

class Forget extends Validate
{
    protected $rule = [
        "mobile" => "require|mobile",
        "password" => "require|min:6|confirm",
        "captcha" => "require",
    ];

    protected $message = [
        'mobile.require' => '请输入手机号',
        'mobile.mobile' => '手机号格式错误',
        'password.require' => '请填写新密码',
        'password.min' => '新密码过短',
        'password.confirm' => '确认密码不相符',
        'captcha.require' => '请填写短信验证码',

    ];

}